package com.loie.datacenter.mapper;

import com.loie.datacenter.model.bo.OrderBO;
import com.loie.datacenter.model.bo.OrderItemBO;
import com.loie.datacenter.model.bo.OrderItemSumBO;
import com.loie.datacenter.model.bo.OrderWithItemBO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhl
 * @create 2021/9/7 13:49
 */
public interface OrderMapper {
    OrderItemSumBO getOrderItemSum(OrderItemBO bo);

    List<OrderBO> getOrderList(@Param("bo") OrderBO bo, @Param("user") String user);

    List<OrderItemBO> getOrderItemList(OrderItemBO bo);

    OrderItemSumBO getOrderCount(@Param("bo") OrderBO bo, @Param("user") String user);

    List<OrderWithItemBO> getOrderWithItemList(@Param("bo") OrderBO bo, @Param("user") String user);

}
